Imports Castle.ActiveRecord

Namespace Model
    ''' <summary>
    '''	Gerado por MyGeneration usando o template ActiveRecord Object Mapper-1.0.3
    '''	Criado em 14/08/2010 00:29:39
    ''' </summary>
    ''' <remarks></remarks>
    <Serializable(), ActiveRecord("nfitem", DynamicUpdate:=True)> _
    Public Class Nfitem
        Inherits ActiveRecordBase(Of Nfitem)

        ' PK
        Private _cd_nf_item As Integer

        ' FKs
        Private _Nf As Model.Nf
        Private _Cfop As Model.Cfop
        Private _NfAdicao As Model.NfAdicao
        Private _Produto As Model.Produto
        Private _Ncm As Model.Ncm
        Private _Unidade As Model.Unidade

        Private _Mod_ICMS As Model.Tr_ICMS_Modalidade
        Private _Mod_ICMSST As Model.Tr_ICMS_Modalidade

        Private _SituacTribICMS As Model.Tr_Situac_Trib
        Private _SituacTribIPI As Model.Tr_Situac_Trib
        Private _SituacTribPIS As Model.Tr_Situac_Trib
        Private _SituacTribCOFINS As Model.Tr_Situac_Trib

        Private _ICMSOrigem As Model.Tr_ICMS_Origem

        Private _nf_it_vlr_extipi As Decimal
        Private _nf_it_genero As String
        Private _nf_it_vlr_dolar As Decimal
        Private _nf_it_vlr_unit_bruto As Decimal
        Private _nf_it_perc_desconto As Decimal
        Private _nf_it_vlr_desconto As Decimal
        Private _nf_it_vlr_unit_liquido As Decimal
        Private _nf_it_quantidade As Decimal
        Private _nf_it_vlr_total As Decimal
        Private _nf_it_peso As Decimal
        Private _nf_it_frete As Decimal
        Private _nf_it_thc As Decimal
        Private _nf_it_seguro As Decimal
        Private _nf_it_siscomex As Decimal
        Private _nf_it_despadu As Decimal

        Private _nf_it_ii_base As Decimal
        Private _nf_it_ii_aliquota As Decimal
        Private _nf_it_ii_valor As Decimal
        Private _nf_it_pis_situac_trib As Long
        Private _nf_it_pis_tipo_calc As Long
        Private _nf_it_pis_base As Decimal
        Private _nf_it_pis_aliq As Decimal
        Private _nf_it_pis_vlr_unit As Decimal
        Private _nf_it_pis_valor As Decimal
        Private _nf_it_pisst_tipo_calc As Long
        Private _nf_it_pisst_base As Decimal
        Private _nf_it_pisst_aliq As Decimal
        Private _nf_it_pisst_vlr_unit As Decimal
        Private _nf_it_pisst_vlr As Decimal
        Private _nf_it_ipi_situac_trib As Long
        Private _nf_it_ipi_classe_enquadramento As String
        Private _nf_it_ipi_codigo_enquadramento As String
        Private _nf_it_ipi_cnpj_produtor As String
        Private _nf_it_ipi_codigo_selo_controle As String
        Private _nf_it_ipi_quant_selo_controle As String
        Private _nf_it_ipi_tipo_calc As Long
        Private _nf_it_ipi_base As Decimal
        Private _nf_it_ipi_aliq As Decimal
        Private _nf_it_ipi_vlr_unit As Decimal
        Private _nf_it_ipi_valor As Decimal
        Private _nf_it_cofins_situac_trib As Long
        Private _nf_it_cofins_tipo_calc As Long
        Private _nf_it_cofins_base As Decimal
        Private _nf_it_cofins_aliq As Decimal
        Private _nf_it_cofins_vlr_unit As Decimal
        Private _nf_it_cofins_valor As Decimal
        Private _nf_it_cofinsst_tipo_calc As Long
        Private _nf_it_cofinsst_base As Decimal
        Private _nf_it_cofinsst_aliq As Decimal
        Private _nf_it_cofinsst_vlr_unit As Decimal
        Private _nf_it_icms_situac_trib As Long
        Private _nf_it_icms_origem As Long
        Private _nf_it_icms_modalidade As Long
        Private _nf_it_icms_perc_reducao As Decimal
        Private _nf_it_cofinsst_vlr As Decimal
        Private _nf_it_icms_base As Decimal
        Private _nf_it_icms_aliquota As Decimal
        Private _nf_it_icms_valor As Decimal
        Private _nf_it_icmsst_modalidade As Long
        Private _nf_it_icmsst_perc_margem_adic As Decimal
        Private _nf_it_icmsst_perc_reducao As Decimal
        Private _nf_it_icmsst_base As Decimal
        Private _nf_it_icmsst_aliq As Decimal
        Private _nf_it_icmsst_vlr As Decimal
        Private _nf_it_prest_serv_base As Decimal
        Private _nf_it_prest_serv_aliquota As Decimal
        Private _nf_it_prest_serv_valor As Decimal
        Private _nf_it_issqn_base As Decimal
        Private _nf_it_issqn_servico As Long
        Private _nf_it_issqn_uf As Long
        Private _nf_it_issqn_municipio As Long
        Private _nf_it_issqn_vlr As Decimal

        'Private _nf_it_ncm As String
        'Private _nf_it_prodes As String

        'Private _Nfitemimpostos As IList(Of Model.Nfitemimposto) = New List(Of Model.Nfitemimposto)

        <PrimaryKey(PrimaryKeyType.Sequence, SequenceName:="nfitem_cd_nf_item_seq")> _
        Public Property cd_nf_item() As Integer
            Get
                Return _cd_nf_item
            End Get
            Set(ByVal value As Integer)
                _cd_nf_item = value
            End Set
        End Property

        <BelongsTo("cd_nf", NotNull:=True)> _
        Public Property Nf() As Model.Nf
            Get
                Return _Nf
            End Get
            Set(ByVal value As Model.Nf)
                _Nf = value
            End Set
        End Property

        <BelongsTo("cd_cfop")> _
        Public Property Cfop() As Model.Cfop
            Get
                Return _Cfop
            End Get
            Set(ByVal value As Model.Cfop)
                _Cfop = value
            End Set
        End Property

        <BelongsTo("cd_nfadicao")> _
        Public Property NfAdicao() As Model.NfAdicao
            Get
                Return _NfAdicao
            End Get
            Set(ByVal value As Model.NfAdicao)
                _NfAdicao = value
            End Set
        End Property

        <BelongsTo("cd_produto")> _
        Public Property Produto() As Model.Produto
            Get
                Return _Produto
            End Get
            Set(ByVal value As Model.Produto)
                _Produto = value
            End Set
        End Property

        <BelongsTo("cd_ncm")> _
        Public Property Ncm() As Model.Ncm
            Get
                Return _Ncm
            End Get
            Set(ByVal value As Model.Ncm)
                _Ncm = value
            End Set
        End Property
        <BelongsTo("cd_unidade")> _
        Public Property Unidade() As Model.Unidade
            Get
                Return _Unidade
            End Get
            Set(ByVal value As Model.Unidade)
                _Unidade = value
            End Set
        End Property

        <BelongsTo("cd_tr_icms_mod_icms")> _
        Public Property Mod_ICMS() As Model.Tr_ICMS_Modalidade
            Get
                Return _Mod_ICMS
            End Get
            Set(ByVal value As Model.Tr_ICMS_Modalidade)
                _Mod_ICMS = value
            End Set
        End Property

        <BelongsTo("cd_tr_icms_mod_icmsst")> _
        Public Property Mod_ICMSST() As Model.Tr_ICMS_Modalidade
            Get
                Return _Mod_ICMSST
            End Get
            Set(ByVal value As Model.Tr_ICMS_Modalidade)
                _Mod_ICMSST = value
            End Set
        End Property

        <BelongsTo("cd_tr_situac_trib_icms")> _
        Public Property SituacTribICMS() As Model.Tr_Situac_Trib
            Get
                Return _SituacTribICMS
            End Get
            Set(ByVal value As Model.Tr_Situac_Trib)
                _SituacTribICMS = value
            End Set
        End Property
        <BelongsTo("cd_tr_situac_trib_ipi")> _
        Public Property SituacTribIPI() As Model.Tr_Situac_Trib
            Get
                Return _SituacTribIPI
            End Get
            Set(ByVal value As Model.Tr_Situac_Trib)
                _SituacTribIPI = value
            End Set
        End Property
        <BelongsTo("cd_tr_situac_trib_pis")> _
        Public Property SituacTribPIS() As Model.Tr_Situac_Trib
            Get
                Return _SituacTribPIS
            End Get
            Set(ByVal value As Model.Tr_Situac_Trib)
                _SituacTribPIS = value
            End Set
        End Property
        <BelongsTo("cd_tr_situac_trib_cofins")> _
        Public Property SituacTribCOFINS() As Model.Tr_Situac_Trib
            Get
                Return _SituacTribCOFINS
            End Get
            Set(ByVal value As Model.Tr_Situac_Trib)
                _SituacTribCOFINS = value
            End Set
        End Property

        <BelongsTo("cd_tr_icms_origem")> _
        Public Property ICMSOrigem() As Model.Tr_ICMS_Origem
            Get
                Return _ICMSOrigem
            End Get
            Set(ByVal value As Model.Tr_ICMS_Origem)
                _ICMSOrigem = value
            End Set
        End Property

        <[Property]("nf_it_vlr_extipi")> _
       Public Property nf_it_vlr_extipi() As Decimal
            Get
                Return _nf_it_vlr_extipi
            End Get
            Set(ByVal value As Decimal)
                _nf_it_vlr_extipi = value
            End Set
        End Property

        <[Property]("nf_it_genero")> _
        Public Property nf_it_genero() As String
            Get
                Return _nf_it_genero
            End Get
            Set(ByVal value As String)
                _nf_it_genero = value
            End Set
        End Property

        <[Property]("nf_it_vlr_dolar")> _
        Public Property nf_it_vlr_dolar() As Decimal
            Get
                Return _nf_it_vlr_dolar
            End Get
            Set(ByVal value As Decimal)
                _nf_it_vlr_dolar = value
            End Set
        End Property

        <[Property]("nf_it_vlr_unit_bruto")> _
        Public Property nf_it_vlr_unit_bruto() As Decimal
            Get
                Return _nf_it_vlr_unit_bruto
            End Get
            Set(ByVal value As Decimal)
                _nf_it_vlr_unit_bruto = value
            End Set
        End Property

        <[Property]("nf_it_perc_desconto")> _
        Public Property nf_it_perc_desconto() As Decimal
            Get
                Return _nf_it_perc_desconto
            End Get
            Set(ByVal value As Decimal)
                _nf_it_perc_desconto = value
            End Set
        End Property

        <[Property]("nf_it_vlr_desconto")> _
        Public Property nf_it_vlr_desconto() As Decimal
            Get
                Return _nf_it_vlr_desconto
            End Get
            Set(ByVal value As Decimal)
                _nf_it_vlr_desconto = value
            End Set
        End Property

        <[Property]("nf_it_vlr_unit_liquido")> _
        Public Property nf_it_vlr_unit_liquido() As Decimal
            Get
                Return _nf_it_vlr_unit_liquido
            End Get
            Set(ByVal value As Decimal)
                _nf_it_vlr_unit_liquido = value
            End Set
        End Property

        <[Property]("nf_it_quantidade")> _
        Public Property nf_it_quantidade() As Decimal
            Get
                Return _nf_it_quantidade
            End Get
            Set(ByVal value As Decimal)
                _nf_it_quantidade = value
            End Set
        End Property

        <[Property]("nf_it_vlr_total")> _
        Public Property nf_it_vlr_total() As Decimal
            Get
                Return _nf_it_vlr_total
            End Get
            Set(ByVal value As Decimal)
                _nf_it_vlr_total = value
            End Set
        End Property

        <[Property]("nf_it_peso")> _
        Public Property nf_it_peso() As Decimal
            Get
                Return _nf_it_peso
            End Get
            Set(ByVal value As Decimal)
                _nf_it_peso = value
            End Set
        End Property

        <[Property]("nf_it_frete")> _
        Public Property nf_it_frete() As Decimal
            Get
                Return _nf_it_frete
            End Get
            Set(ByVal value As Decimal)
                _nf_it_frete = value
            End Set
        End Property

        <[Property]("nf_it_thc")> _
        Public Property nf_it_thc() As Decimal
            Get
                Return _nf_it_thc
            End Get
            Set(ByVal value As Decimal)
                _nf_it_thc = value
            End Set
        End Property

        <[Property]("nf_it_seguro")> _
        Public Property nf_it_seguro() As Decimal
            Get
                Return _nf_it_seguro
            End Get
            Set(ByVal value As Decimal)
                _nf_it_seguro = value
            End Set
        End Property

        <[Property]("nf_it_siscomex")> _
        Public Property nf_it_siscomex() As Decimal
            Get
                Return _nf_it_siscomex
            End Get
            Set(ByVal value As Decimal)
                _nf_it_siscomex = value
            End Set
        End Property

        <[Property]("nf_it_despadu")> _
        Public Property nf_it_despadu() As Decimal
            Get
                Return _nf_it_despadu
            End Get
            Set(ByVal value As Decimal)
                _nf_it_despadu = value
            End Set
        End Property

        <[Property]("nf_it_ii_base")> _
        Public Property nf_it_ii_base() As Decimal
            Get
                Return _nf_it_ii_base
            End Get
            Set(ByVal value As Decimal)
                _nf_it_ii_base = value
            End Set
        End Property

        <[Property]("nf_it_ii_aliquota")> _
        Public Property nf_it_ii_aliquota() As Decimal
            Get
                Return _nf_it_ii_aliquota
            End Get
            Set(ByVal value As Decimal)
                _nf_it_ii_aliquota = value
            End Set
        End Property

        <[Property]("nf_it_ii_valor")> _
        Public Property nf_it_ii_valor() As Decimal
            Get
                Return _nf_it_ii_valor
            End Get
            Set(ByVal value As Decimal)
                _nf_it_ii_valor = value
            End Set
        End Property

        <[Property]("nf_it_pis_situac_trib")> _
        Public Property nf_it_pis_situac_trib() As Long
            Get
                Return _nf_it_pis_situac_trib
            End Get
            Set(ByVal value As Long)
                _nf_it_pis_situac_trib = value
            End Set
        End Property

        <[Property]("nf_it_pis_tipo_calc")> _
        Public Property nf_it_pis_tipo_calc() As Long
            Get
                Return _nf_it_pis_tipo_calc
            End Get
            Set(ByVal value As Long)
                _nf_it_pis_tipo_calc = value
            End Set
        End Property

        <[Property]("nf_it_pis_base")> _
        Public Property nf_it_pis_base() As Decimal
            Get
                Return _nf_it_pis_base
            End Get
            Set(ByVal value As Decimal)
                _nf_it_pis_base = value
            End Set
        End Property

        <[Property]("nf_it_pis_aliq")> _
        Public Property nf_it_pis_aliq() As Decimal
            Get
                Return _nf_it_pis_aliq
            End Get
            Set(ByVal value As Decimal)
                _nf_it_pis_aliq = value
            End Set
        End Property

        <[Property]("nf_it_pis_vlr_unit")> _
        Public Property nf_it_pis_vlr_unit() As Decimal
            Get
                Return _nf_it_pis_vlr_unit
            End Get
            Set(ByVal value As Decimal)
                _nf_it_pis_vlr_unit = value
            End Set
        End Property

        <[Property]("nf_it_pis_valor")> _
        Public Property nf_it_pis_valor() As Decimal
            Get
                Return _nf_it_pis_valor
            End Get
            Set(ByVal value As Decimal)
                _nf_it_pis_valor = value
            End Set
        End Property

        <[Property]("nf_it_pisst_tipo_calc")> _
        Public Property nf_it_pisst_tipo_calc() As Long
            Get
                Return _nf_it_pisst_tipo_calc
            End Get
            Set(ByVal value As Long)
                _nf_it_pisst_tipo_calc = value
            End Set
        End Property

        <[Property]("nf_it_pisst_base")> _
        Public Property nf_it_pisst_base() As Decimal
            Get
                Return _nf_it_pisst_base
            End Get
            Set(ByVal value As Decimal)
                _nf_it_pisst_base = value
            End Set
        End Property

        <[Property]("nf_it_pisst_aliq")> _
        Public Property nf_it_pisst_aliq() As Decimal
            Get
                Return _nf_it_pisst_aliq
            End Get
            Set(ByVal value As Decimal)
                _nf_it_pisst_aliq = value
            End Set
        End Property

        <[Property]("nf_it_pisst_vlr_unit")> _
        Public Property nf_it_pisst_vlr_unit() As Decimal
            Get
                Return _nf_it_pisst_vlr_unit
            End Get
            Set(ByVal value As Decimal)
                _nf_it_pisst_vlr_unit = value
            End Set
        End Property

        <[Property]("nf_it_pisst_vlr")> _
        Public Property nf_it_pisst_vlr() As Decimal
            Get
                Return _nf_it_pisst_vlr
            End Get
            Set(ByVal value As Decimal)
                _nf_it_pisst_vlr = value
            End Set
        End Property

        <[Property]("nf_it_ipi_situac_trib")> _
        Public Property nf_it_ipi_situac_trib() As Long
            Get
                Return _nf_it_ipi_situac_trib
            End Get
            Set(ByVal value As Long)
                _nf_it_ipi_situac_trib = value
            End Set
        End Property

        <[Property]("nf_it_ipi_classe_enquadramento")> _
        Public Property nf_it_ipi_classe_enquadramento() As String
            Get
                Return _nf_it_ipi_classe_enquadramento
            End Get
            Set(ByVal value As String)
                _nf_it_ipi_classe_enquadramento = value
            End Set
        End Property

        <[Property]("nf_it_ipi_codigo_enquadramento")> _
        Public Property nf_it_ipi_codigo_enquadramento() As String
            Get
                Return _nf_it_ipi_codigo_enquadramento
            End Get
            Set(ByVal value As String)
                _nf_it_ipi_codigo_enquadramento = value
            End Set
        End Property

        <[Property]("nf_it_ipi_cnpj_produtor")> _
        Public Property nf_it_ipi_cnpj_produtor() As String
            Get
                Return _nf_it_ipi_cnpj_produtor
            End Get
            Set(ByVal value As String)
                _nf_it_ipi_cnpj_produtor = value
            End Set
        End Property

        <[Property]("nf_it_ipi_codigo_selo_controle")> _
        Public Property nf_it_ipi_codigo_selo_controle() As String
            Get
                Return _nf_it_ipi_codigo_selo_controle
            End Get
            Set(ByVal value As String)
                _nf_it_ipi_codigo_selo_controle = value
            End Set
        End Property

        <[Property]("nf_it_ipi_quant_selo_controle")> _
        Public Property nf_it_ipi_quant_selo_controle() As String
            Get
                Return _nf_it_ipi_quant_selo_controle
            End Get
            Set(ByVal value As String)
                _nf_it_ipi_quant_selo_controle = value
            End Set
        End Property

        <[Property]("nf_it_ipi_tipo_calc")> _
        Public Property nf_it_ipi_tipo_calc() As Long
            Get
                Return _nf_it_ipi_tipo_calc
            End Get
            Set(ByVal value As Long)
                _nf_it_ipi_tipo_calc = value
            End Set
        End Property

        <[Property]("nf_it_ipi_base")> _
        Public Property nf_it_ipi_base() As Decimal
            Get
                Return _nf_it_ipi_base
            End Get
            Set(ByVal value As Decimal)
                _nf_it_ipi_base = value
            End Set
        End Property

        <[Property]("nf_it_ipi_aliq")> _
        Public Property nf_it_ipi_aliq() As Decimal
            Get
                Return _nf_it_ipi_aliq
            End Get
            Set(ByVal value As Decimal)
                _nf_it_ipi_aliq = value
            End Set
        End Property

        <[Property]("nf_it_ipi_vlr_unit")> _
        Public Property nf_it_ipi_vlr_unit() As Decimal
            Get
                Return _nf_it_ipi_vlr_unit
            End Get
            Set(ByVal value As Decimal)
                _nf_it_ipi_vlr_unit = value
            End Set
        End Property

        <[Property]("nf_it_ipi_valor")> _
        Public Property nf_it_ipi_valor() As Decimal
            Get
                Return _nf_it_ipi_valor
            End Get
            Set(ByVal value As Decimal)
                _nf_it_ipi_valor = value
            End Set
        End Property

        <[Property]("nf_it_cofins_situac_trib")> _
        Public Property nf_it_cofins_situac_trib() As Long
            Get
                Return _nf_it_cofins_situac_trib
            End Get
            Set(ByVal value As Long)
                _nf_it_cofins_situac_trib = value
            End Set
        End Property

        <[Property]("nf_it_cofins_tipo_calc")> _
        Public Property nf_it_cofins_tipo_calc() As Long
            Get
                Return _nf_it_cofins_tipo_calc
            End Get
            Set(ByVal value As Long)
                _nf_it_cofins_tipo_calc = value
            End Set
        End Property

        <[Property]("nf_it_cofins_base")> _
        Public Property nf_it_cofins_base() As Decimal
            Get
                Return _nf_it_cofins_base
            End Get
            Set(ByVal value As Decimal)
                _nf_it_cofins_base = value
            End Set
        End Property

        <[Property]("nf_it_cofins_aliq")> _
        Public Property nf_it_cofins_aliq() As Decimal
            Get
                Return _nf_it_cofins_aliq
            End Get
            Set(ByVal value As Decimal)
                _nf_it_cofins_aliq = value
            End Set
        End Property

        <[Property]("nf_it_cofins_vlr_unit")> _
        Public Property nf_it_cofins_vlr_unit() As Decimal
            Get
                Return _nf_it_cofins_vlr_unit
            End Get
            Set(ByVal value As Decimal)
                _nf_it_cofins_vlr_unit = value
            End Set
        End Property

        <[Property]("nf_it_cofins_valor")> _
        Public Property nf_it_cofins_valor() As Decimal
            Get
                Return _nf_it_cofins_valor
            End Get
            Set(ByVal value As Decimal)
                _nf_it_cofins_valor = value
            End Set
        End Property

        <[Property]("nf_it_cofinsst_tipo_calc")> _
        Public Property nf_it_cofinsst_tipo_calc() As Long
            Get
                Return _nf_it_cofinsst_tipo_calc
            End Get
            Set(ByVal value As Long)
                _nf_it_cofinsst_tipo_calc = value
            End Set
        End Property

        <[Property]("nf_it_cofinsst_base")> _
        Public Property nf_it_cofinsst_base() As Decimal
            Get
                Return _nf_it_cofinsst_base
            End Get
            Set(ByVal value As Decimal)
                _nf_it_cofinsst_base = value
            End Set
        End Property

        <[Property]("nf_it_cofinsst_aliq")> _
        Public Property nf_it_cofinsst_aliq() As Decimal
            Get
                Return _nf_it_cofinsst_aliq
            End Get
            Set(ByVal value As Decimal)
                _nf_it_cofinsst_aliq = value
            End Set
        End Property

        <[Property]("nf_it_cofinsst_vlr_unit")> _
        Public Property nf_it_cofinsst_vlr_unit() As Decimal
            Get
                Return _nf_it_cofinsst_vlr_unit
            End Get
            Set(ByVal value As Decimal)
                _nf_it_cofinsst_vlr_unit = value
            End Set
        End Property

        <[Property]("nf_it_icms_situac_trib")> _
        Public Property nf_it_icms_situac_trib() As Long
            Get
                Return _nf_it_icms_situac_trib
            End Get
            Set(ByVal value As Long)
                _nf_it_icms_situac_trib = value
            End Set
        End Property

        <[Property]("nf_it_icms_origem")> _
        Public Property nf_it_icms_origem() As Long
            Get
                Return _nf_it_icms_origem
            End Get
            Set(ByVal value As Long)
                _nf_it_icms_origem = value
            End Set
        End Property

        <[Property]("nf_it_icms_modalidade")> _
        Public Property nf_it_icms_modalidade() As Long
            Get
                Return _nf_it_icms_modalidade
            End Get
            Set(ByVal value As Long)
                _nf_it_icms_modalidade = value
            End Set
        End Property

        <[Property]("nf_it_icms_perc_reducao")> _
        Public Property nf_it_icms_perc_reducao() As Decimal
            Get
                Return _nf_it_icms_perc_reducao
            End Get
            Set(ByVal value As Decimal)
                _nf_it_icms_perc_reducao = value
            End Set
        End Property

        <[Property]("nf_it_cofinsst_vlr")> _
        Public Property nf_it_cofinsst_vlr() As Decimal
            Get
                Return _nf_it_cofinsst_vlr
            End Get
            Set(ByVal value As Decimal)
                _nf_it_cofinsst_vlr = value
            End Set
        End Property

        <[Property]("nf_it_icms_base")> _
        Public Property nf_it_icms_base() As Decimal
            Get
                Return _nf_it_icms_base
            End Get
            Set(ByVal value As Decimal)
                _nf_it_icms_base = value
            End Set
        End Property

        <[Property]("nf_it_icms_aliquota")> _
        Public Property nf_it_icms_aliquota() As Decimal
            Get
                Return _nf_it_icms_aliquota
            End Get
            Set(ByVal value As Decimal)
                _nf_it_icms_aliquota = value
            End Set
        End Property

        <[Property]("nf_it_icms_valor")> _
        Public Property nf_it_icms_valor() As Decimal
            Get
                Return _nf_it_icms_valor
            End Get
            Set(ByVal value As Decimal)
                _nf_it_icms_valor = value
            End Set
        End Property

        <[Property]("nf_it_icmsst_modalidade")> _
        Public Property nf_it_icmsst_modalidade() As Long
            Get
                Return _nf_it_icmsst_modalidade
            End Get
            Set(ByVal value As Long)
                _nf_it_icmsst_modalidade = value
            End Set
        End Property

        <[Property]("nf_it_icmsst_perc_margem_adic")> _
        Public Property nf_it_icmsst_perc_margem_adic() As Decimal
            Get
                Return _nf_it_icmsst_perc_margem_adic
            End Get
            Set(ByVal value As Decimal)
                _nf_it_icmsst_perc_margem_adic = value
            End Set
        End Property

        <[Property]("nf_it_icmsst_perc_reducao")> _
        Public Property nf_it_icmsst_perc_reducao() As Decimal
            Get
                Return _nf_it_icmsst_perc_reducao
            End Get
            Set(ByVal value As Decimal)
                _nf_it_icmsst_perc_reducao = value
            End Set
        End Property

        <[Property]("nf_it_icmsst_base")> _
        Public Property nf_it_icmsst_base() As Decimal
            Get
                Return _nf_it_icmsst_base
            End Get
            Set(ByVal value As Decimal)
                _nf_it_icmsst_base = value
            End Set
        End Property

        <[Property]("nf_it_icmsst_aliq")> _
        Public Property nf_it_icmsst_aliq() As Decimal
            Get
                Return _nf_it_icmsst_aliq
            End Get
            Set(ByVal value As Decimal)
                _nf_it_icmsst_aliq = value
            End Set
        End Property

        <[Property]("nf_it_icmsst_vlr")> _
        Public Property nf_it_icmsst_vlr() As Decimal
            Get
                Return _nf_it_icmsst_vlr
            End Get
            Set(ByVal value As Decimal)
                _nf_it_icmsst_vlr = value
            End Set
        End Property

        <[Property]("nf_it_prest_serv_base")> _
        Public Property nf_it_prest_serv_base() As Decimal
            Get
                Return _nf_it_prest_serv_base
            End Get
            Set(ByVal value As Decimal)
                _nf_it_prest_serv_base = value
            End Set
        End Property

        <[Property]("nf_it_prest_serv_aliquota")> _
        Public Property nf_it_prest_serv_aliquota() As Decimal
            Get
                Return _nf_it_prest_serv_aliquota
            End Get
            Set(ByVal value As Decimal)
                _nf_it_prest_serv_aliquota = value
            End Set
        End Property

        <[Property]("nf_it_prest_serv_valor")> _
        Public Property nf_it_prest_serv_valor() As Decimal
            Get
                Return _nf_it_prest_serv_valor
            End Get
            Set(ByVal value As Decimal)
                _nf_it_prest_serv_valor = value
            End Set
        End Property

        <[Property]("nf_it_issqn_base")> _
        Public Property nf_it_issqn_base() As Decimal
            Get
                Return _nf_it_issqn_base
            End Get
            Set(ByVal value As Decimal)
                _nf_it_issqn_base = value
            End Set
        End Property

        <[Property]("nf_it_issqn_servico")> _
        Public Property nf_it_issqn_servico() As Long
            Get
                Return _nf_it_issqn_servico
            End Get
            Set(ByVal value As Long)
                _nf_it_issqn_servico = value
            End Set
        End Property

        <[Property]("nf_it_issqn_uf")> _
        Public Property nf_it_issqn_uf() As Long
            Get
                Return _nf_it_issqn_uf
            End Get
            Set(ByVal value As Long)
                _nf_it_issqn_uf = value
            End Set
        End Property

        <[Property]("nf_it_issqn_municipio")> _
        Public Property nf_it_issqn_municipio() As Long
            Get
                Return _nf_it_issqn_municipio
            End Get
            Set(ByVal value As Long)
                _nf_it_issqn_municipio = value
            End Set
        End Property

        <[Property]("nf_it_issqn_vlr")> _
        Public Property nf_it_issqn_vlr() As Decimal
            Get
                Return _nf_it_issqn_vlr
            End Get
            Set(ByVal value As Decimal)
                _nf_it_issqn_vlr = value
            End Set
        End Property


        'Inverse:=True,
        '<HasMany(GetType(Model.Nfitemimposto), Table:="nfitemimposto", ColumnKey:="cd_nf_item", Inverse:=True, Cascade:=ManyRelationCascadeEnum.AllDeleteOrphan)> _
        'Public Property Nfitemimpostos() As IList(Of Model.Nfitemimposto)
        '    Get
        '        Return _Nfitemimpostos
        '    End Get
        '    Set(ByVal value As IList(Of Model.Nfitemimposto))
        '        _Nfitemimpostos = value
        '    End Set
        'End Property

        '<OneToOne(Cascade:=CascadeEnum.All)> _
        'Public Property Nfitemimposto() As Model.Nfitemimposto
        '    Get
        '        'If _Nfitemimposto Is Nothing Then
        '        '    _Nfitemimposto = New Model.Nfitemimposto
        '        'End If
        '        Return _Nfitemimposto
        '    End Get
        '    Set(ByVal value As Model.Nfitemimposto)
        '        If Not value Is _Nfitemimposto Then
        '            _Nfitemimposto = value
        '        End If
        '    End Set
        'End Property
    End Class
End Namespace